package edu.zhuravlev.trainingbot.it.config;


import org.mockito.Mockito;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import org.telegram.telegrambots.longpolling.starter.TelegramBotInitializer;
import org.telegram.telegrambots.meta.generics.TelegramClient;


@TestConfiguration
public class TestConfig {

    private final TelegramClient telegramClient = Mockito.mock(TelegramClient.class);

    private final TelegramBotInitializer telegramBotInitializer = Mockito.mock(TelegramBotInitializer.class);

    @Bean
    public TelegramBotInitializer telegramBotInitializer() {
        return telegramBotInitializer;
    }

    @Bean
    public TelegramClient telegramClient() {
        return telegramClient;
    }

}
